package org.sun.sunshine.batch;

import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.support.ApplicationContextFactory;
import org.springframework.batch.core.configuration.support.GenericApplicationContextFactory;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
//@EnableAutoConfiguration
//@EnableBatchProcessing(modular = true) //modular = true 创建多job
//public class BatchConfig {
//
//
//    //创建自己的jobContext
//    @Bean
//    public ApplicationContextFactory firstJobContext() {
//        return new GenericApplicationContextFactory(FirstJobConfiguration.class);
//    }
//
//}
